package com.antdesignbackend.backend.service.impl;

import com.antdesignbackend.backend.entity.CertificationInformation;
import com.antdesignbackend.backend.entity.entityVo.CertificationInformationVo;
import com.antdesignbackend.backend.mapper.CertificationInformationMapper;
import com.antdesignbackend.backend.service.CertificationInformationService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CertificationInformationServiceImpl extends ServiceImpl<CertificationInformationMapper, CertificationInformation> implements CertificationInformationService {
    @Autowired
    CertificationInformationMapper certificationInformationMapper;
    @Override
    public int count(@Param(Constants.WRAPPER) QueryWrapper<CertificationInformation> certificationInformationQueryWrapper){
        return certificationInformationMapper.count(certificationInformationQueryWrapper);
    };
    @Override
    public List<CertificationInformationVo> search(@Param(Constants.WRAPPER) QueryWrapper<CertificationInformation> certificationInformationQueryWrapper){
        return certificationInformationMapper.search(certificationInformationQueryWrapper);
    };
    @Override
    public Boolean attestationTrue(@Param(Constants.WRAPPER) UpdateWrapper<CertificationInformation> certificationInformationUpdateWrapper){
        return certificationInformationMapper.attestationTrue(certificationInformationUpdateWrapper);
    };
    @Override
    public Boolean attestationFalse(@Param(Constants.WRAPPER) UpdateWrapper<CertificationInformation> certificationInformationUpdateWrapper){
        return certificationInformationMapper.attestationFalse(certificationInformationUpdateWrapper);
    };
}
